import { http } from "@/utils/http";

/** 获取所有视频 */
export const getAllCourse = (params?: object) => {
  return http.request<any>("get", "/course/getAllCourse", { params });
};

/** 删除视频 */
export const deleteCourse = (params?: object) => {
  return http.request<any>("delete", "/course/deleteCourse", {
    params
  });
};

/** 添加视频 */
export const addOrientation = (data?: object) => {
  return http.request<any>("post", "/course/addOrientation", { data });
};

/** 修改视频 */
export const updateCourse = (data?: object) => {
  return http.request<any>("put", "/course/updateCourse", { data });
};
